﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Rose.Helper
{
    public class ReturnImageHelpModel
    {
        public static  string ReturnImage(string feel) 
        {
            string path = "/Content/Images/feeling/";
            string extension = ".jpg";

            return path + feel.ToLower() + extension;

        }



        public static SelectList GetFeelImage(string type)
        {
            List<SelectListItem> feellist = new List<SelectListItem>();
            feellist.Add(new SelectListItem() { Value = "amazed", Text = "惊讶" });
            feellist.Add(new SelectListItem() { Value = "angry", Text = "生气" });
            feellist.Add(new SelectListItem() { Value = "cry", Text = "伤心" });
            feellist.Add(new SelectListItem() { Value = "forward", Text = "期待" });
            feellist.Add(new SelectListItem() { Value = "glad", Text = "高兴" });
            feellist.Add(new SelectListItem() { Value = "sex", Text = "想YY" });
            feellist.Add(new SelectListItem() { Value = "smile", Text = "开心" });
            feellist.Add(new SelectListItem() { Value = "veryangry", Text = "发怒" });
            feellist.Add(new SelectListItem() { Value = "yinxian", Text = "阴险" });

            feellist.Add(new SelectListItem() { Value = "all", Text = "所有" });
            return new SelectList(feellist, "Value", "Text", type);
           
            //这里的列表会影响到trend部分的表情

        }


    }
}